package com.duanjw.springframework.service.impl;


import com.duanjw.springframework.dao.AccountDao;
import com.duanjw.springframework.dao.ItemDao;
import com.duanjw.springframework.service.PetStoreService;

/**
 * 宠物商城
 *
 * @author duanjw
 */
public class PetStoreServiceImpl implements PetStoreService {

    public PetStoreServiceImpl() {
        System.out.println("PetStoreServiceImpl空参构造初始化，hashCode：" + this.hashCode());
    }

    public PetStoreServiceImpl(AccountDao accountDao) {
        this.accountDao = accountDao;
        System.out.println("PetStoreServiceImpl的accountDao构造初始化，hashCode：" + this.hashCode());
    }

    private AccountDao accountDao;


    @Override
    public void show() {
        accountDao.show();
    }

    public AccountDao getAccountDao() {
        return accountDao;
    }

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }
}
